home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / edit / jed207.lha / src / regexp.lha / regerror.c < prev    next >
C/C++ Source or Header  |  1993-01-14  |  407b  |  28 lines

  1.  
  2. /*
  3.  * CHANGED, 14-Jan-93, by J.Harper,
  4.  * added #ifdef __STDC__ prototype sections so I can use registerized
  5.  * arguments
  6.  */
  7.  
  8. #include <stdio.h>
  9. #ifdef __STDC__
  10. void    exit(int);
  11. #ifdef ERRAVAIL
  12. void    error(char *, char *);
  13. #endif
  14. #endif
  15.  
  16. void
  17. regerror(s)
  18.     char       *s;
  19. {
  20. #ifdef ERRAVAIL
  21.     error("regexp: %s", s);
  22. #else
  23.     fprintf(stderr, "regexp(3): %s", s);
  24.     exit(1);
  25. #endif
  26.     /* NOTREACHED */
  27. }
  28.